//
// Created by ins on 2021/3/7.
//

#ifndef SERVICE_MIDENEMYBEAN_H
#define SERVICE_MIDENEMYBEAN_H
#include <string>
#include <iostream>

using std::string;
class MidEnemyBean {
private:
    string id;
    string gname;
    string mid;
    string gyid;
    string gexp;
    string glv;
    string ghp;
    string gmaxhp;
    string ggj;
    string gfy;
    string gbj;
    string gxx;
    string sid;

public:
    MidEnemyBean() {}

    const string &getId() const {
        return id;
    }

    void setId(const string &id) {
        MidEnemyBean::id = id;
    }

    const string &getGname() const {
        return gname;
    }

    void setGname(const string &gname) {
        MidEnemyBean::gname = gname;
    }

    const string &getMid() const {
        return mid;
    }

    void setMid(const string &mid) {
        MidEnemyBean::mid = mid;
    }

    const string &getGyid() const {
        return gyid;
    }

    void setGyid(const string &gyid) {
        MidEnemyBean::gyid = gyid;
    }

    const string &getGexp() const {
        return gexp;
    }

    void setGexp(const string &gexp) {
        MidEnemyBean::gexp = gexp;
    }

    const string &getSid() const {
        return sid;
    }

    void setSid(const string &sid) {
        MidEnemyBean::sid = sid;
    }

    const string &getGlv() const {
        return glv;
    }

    void setGlv(const string &glv) {
        MidEnemyBean::glv = glv;
    }

    const string &getGhp() const {
        return ghp;
    }

    void setGhp(const string &ghp) {
        MidEnemyBean::ghp = ghp;
    }

    const string &getGmaxhp() const {
        return gmaxhp;
    }

    void setGmaxhp(const string &gmaxhp) {
        MidEnemyBean::gmaxhp = gmaxhp;
    }

    const string &getGgj() const {
        return ggj;
    }

    void setGgj(const string &ggj) {
        MidEnemyBean::ggj = ggj;
    }

    const string &getGfy() const {
        return gfy;
    }

    void setGfy(const string &gfy) {
        MidEnemyBean::gfy = gfy;
    }

    const string &getGbj() const {
        return gbj;
    }

    void setGbj(const string &gbj) {
        MidEnemyBean::gbj = gbj;
    }

    const string &getGxx() const {
        return gxx;
    }

    void setGxx(const string &gxx) {
        MidEnemyBean::gxx = gxx;
    }

    string toString(){
        return "{"
        "\"id\":\"" + id +"\""
        ", \"name\":\"" + gname + "\"" +
        ", \"mid\":" + mid +
        ", \"gyid\":\"" + gyid + "\"" +
        ", \"exp\":" + gexp +
        ", \"lv\":" + glv +
        ", \"hp\":" + ghp +
        ", \"maxhp\":" + gmaxhp +
        ", \"attack\":" + ggj +
        ", \"defence\":" + gfy +
        ", \"baoji\":" + gbj +
        ", \"xixue\":" + gxx +
        ", \"sid\":\"" + sid + "\"" +
        '}';
    }
};


#endif //SERVICE_MIDENEMYBEAN_H
